//
//  LLT_AddPlayerInfoViewController_LXM.m
//  CoderLLT
//
//  Created by 刘晓萌 on 15/12/30.
//  Copyright © 2015年 刘晓萌. All rights reserved.
//

#import "LLT_AddPlayerInfoViewController_LXM.h"
#import "LLT_SearchPlayerViewController_LXM.h"
#import "UIViewController+REFrostedViewController.h"
#import "REFrostedViewController.h"
#import <AVOSCloud/AVOSCloud.h>
#import "UIViewController+LLT_LoginAndRegist_LXM.h"

@interface LLT_AddPlayerInfoViewController_LXM ()
@property (weak, nonatomic) IBOutlet UIImageView *headImage;

@end


@implementation LLT_AddPlayerInfoViewController_LXM

- (void)viewDidLoad {
    [super viewDidLoad];
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(didClickLeftView:)];
    self.tabBarController.tabBar.tintColor = [UIColor colorWithRed:255.0/255.0 green:124.0/255.0 blue:56.0/255.0 alpha:1];
    [self.headImage addGestureRecognizer:tap];
    self.headImage.userInteractionEnabled = YES;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];

}


#pragma mark --- 点击事件

/**
 * 点击侧页
 */
-(void)didClickLeftView:(UIGestureRecognizer *)sender{
[self.frostedViewController presentMenuViewController];
}


/**
 * 点击搜索
 */
- (IBAction)didClickSearch:(UIButton *)sender {
    if ([AVUser currentUser].mobilePhoneNumber.length > 0) {
        LLT_SearchPlayerViewController_LXM *svc = getVC(@"searchPlayerVC");
        [self presentViewController:svc animated:YES completion:nil];
    }else{
        [self showAlert:@"提 示" andAlertString:@"请注册后再绑定角色"];
    }
    
}


@end
